//
//  MonthReportViewController.h
//  MoneyLog
//
//  Created by Max on 11-6-12.
//  Copyright 2011年 wicresoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Database.h"
#import "MyDate.h"
@class MonthReportItem;

@interface MonthReportViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,UIPickerViewDataSource,UIPickerViewDelegate> {
    UIView              *titleView;
    UIButton            *titleButton;
    
    UITableView         *_tableView;
    NSMutableArray      *dataSourceArray;
    
    MyDate              *searchStartDate;
    MyDate              *searchEndDate;
    
    UIView              *dateSelectView;
    UIPickerView        *startPickerView;
    UIPickerView        *endPickerView;
    NSMutableArray      *pikcerDataSource;
    
}

@property (nonatomic,retain) IBOutlet UITableView         *_tableView;
@property (nonatomic,retain) NSMutableArray               *dataSourceArray;
@property (nonatomic,retain) MyDate                       *searchStartDate;
@property (nonatomic,retain) MyDate                       *searchEndDate;

@property (nonatomic,retain) IBOutlet UIView              *dateSelectView;
@property (nonatomic,retain) IBOutlet UIPickerView        *startPickerView;
@property (nonatomic,retain) IBOutlet UIPickerView        *endPickerView;
@property (nonatomic,retain)  NSMutableArray              *pikcerDataSource;

-(id)tableCellView:(MonthReportItem *)item frame:(CGRect)frame;
-(void) statRecord;

-(IBAction)cancelAction;
-(IBAction)doneAction;

@end
